package learningThread.syn.synchronizedMethodLockObj.communicate.joinException;

public class ThreadB extends Thread{

    @Override
    public void run() {
        try {
            ThreadA threadA = new ThreadA();
            threadA.start();
            threadA.join();
        } catch (InterruptedException e) {
            System.out.println("线程B在 catch处打印了......");
            e.printStackTrace();
        }
    }
}
